<?php  
	include("../includes/connect_db.php");
	include("../includes/core.php");

	$jumlah_meja	= $_POST['jumlah_meja'];
	$tax 					= $_POST['tax'];
	$service 			= $_POST['service'];
	$credit_card 	= $_POST['credit_card'];

	$sql_truncate_setting = "TRUNCATE setting";
	$query_truncate_setting = mysql_query($sql_truncate_setting);

	$sql_insert_setting = "INSERT INTO setting (jumlah_meja, tax, service, credit_card) VALUES ('$jumlah_meja', '$tax', '$service', '$credit_card')";
	if ($query_insert_setting = mysql_query($sql_insert_setting)) {
		echo "sukses";
	} else {
		echo mysql_error();
	}
?>